home *** CD-ROM | disk | FTP | other *** search
- Path: nntpd.lkg.dec.com!usenet
- From: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
- Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c
- Subject: Re: getting correct local time in VAX C program
- Date: 2 Apr 1996 19:01:12 GMT
- Organization: Digital Equipment Corp
- Distribution: world
- Message-ID: <4jrtho$ror@nntpd.lkg.dec.com>
- References: <4jec36$ff3@lastactionhero.rs.itd.umich.edu>
- Reply-To: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
- NNTP-Posting-Host: xdelta.enet.dec.com
- X-Newsreader: mxrn 6.18-32
-
-
- In article <4jec36$ff3@lastactionhero.rs.itd.umich.edu>, raffel@umich.edu (David Raffel) writes:
- :Are there any routines available that will return the correct
- :local time, or any suggestions for how I can get the correct
- :time?
-
- VAX C V3.1 is a veritable antique by present standards -- V3.2 is five
- or six years old. The current C compiler for OpenVMS VAX is DEC C, and
- V5.2 is the current release. (Both VAX C V3.2 and DEC C can coexist on
- the same OpenVMS VAX system, and both are enabled with the "C" license.
- DEC C requires a run-time kit -- in the distribution directory with the
- DEC C compiler -- for OpenVMS V5.5 through V6.0 inclusive. The run-time
- kit is not necessary on and should not be installed on V6.1 or later.)
-
- DEC C V5.2 and OpenVMS V7.0 do include timezone support -- the VAX C
- compiler does not. (OpenVMS V6.0 and later include the RTL support for
- UTC and similar, and much of the underpinnings necessary for solving
- this problem are present starting in that release -- gmtime and friends
- first return non-zero values on OpenVMS V7.0.)
-
- Prior to the V5.2/V7.0 release, you will need to implement the TDF
- calculations yourself. This task is easiest on V6.0 and later, as the
- services are available.
-
- ------------------------- pure personal opinion ---------------------------
- Stephen Hoffman OpenVMS Engineering hoffman@xdelta.enet.dec.com
- ---------------------------------------------------------------------------
-
-